package com.cheejee.goodscenter.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.cheejee.goodscenter.module.entity.BrandPropertiesTemplate;
@Mapper
public interface BrandPropertiesTemplateMapper {
    int deleteByPrimaryKey(Integer id);

//    int insert(BrandPropertiesTemplate record);

    int insertSelective(BrandPropertiesTemplate record);

    BrandPropertiesTemplate selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BrandPropertiesTemplate record);

//    int updateByPrimaryKey(BrandPropertiesTemplate record);
    
 // ################ 以上为mybatis generator生成 #####################
    
    List<BrandPropertiesTemplate> queryBySelective(
    		@Param("brandId")Integer brandId, 
    		@Param("brandPropertiesGroupId")Integer brandPropertiesGroupId, 
    		@Param("propertiesName")String propertiesName, 
    		@Param("required")Boolean required, 
    		@Param("type")Byte type, 
    		@Param("initial")String initial);
    
    int deleteById(@Param("id")Integer...id);
    
    int freedom(@Param("groupId")Integer...groupId);
}